//
//  BaseLabel.m
//  LYPhotos
//
//  Created by 美鑫科技 on 16/5/6.
//  Copyright © 2016年 MorpLCP. All rights reserved.
//

#import "BaseLabel.h"

@implementation BaseLabel

- (instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        self.textColor = [ThemeManager shareManager].theme.themeTextColor;
        [[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(txtColorChenged) name:@"changeTextColor" object:nil];
    }
    return self;
}

- (void)txtColorChenged{
    self.txtColor = [ThemeManager shareManager].theme.themeTextColor;
}

- (void)setTxtColor:(UIColor *)txtColor{
    _txtColor = txtColor;
    self.textColor = txtColor;
}
@end
